#include <stdlib.h>
#include <stdio.h>
#include <include/cstl.h>

int main()
{
    cstl_init();
    int index = 0;
    vector_t vec = NULL;
    vec = vector_create(int);
    if (NULL == vec)
    {
        printf("Create int vector failed!\n");
    }

    for (index = 0; index < 10001; ++index)
    {
        vector_push_back(vec, &index);
    }

    vector_destroy(vec);

    vec = vector_create(char);
    vector_destroy(vec);

    vec = vector_create(short);
    vector_destroy(vec);

    vec = vector_create(long);
    vector_destroy(vec);

    vec = vector_create(float);
    vector_destroy(vec);

    vec = vector_create(double);
    vector_destroy(vec);

    vec = vector_create(long double);
    vector_destroy(vec);

    cstl_exit();
    return 0;
}

